// 营期管理
import request from '@/utils/request'

// 获取营期列表
export function getCampList(params) {
  return request({
    url: '/ucenter-admin/camping/camp/listCamp',
    method: 'get',
    params
  })
}
// 创建营期
export function createCamp(params) {
  return request({
    url: '/ucenter-admin/camping/camp/createCamp',
    method: 'post',
    data: params
  })
}
// 获取营期孩子列表
export function getCampChildList(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/listCampChildrenPage',
    method: 'get',
    params
  })
}
// 添加孩子到营期
export function addChildToCamp(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/save',
    method: 'post',
    data: params
  })
}
// 添加孩子到分组
export function addChildToGroup(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/saveChildTeam',
    method: 'post',
    data: params,
    typeData: 'JSON'
  })
}
// 获取分组中的孩子
export function getChildOfGroup(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/listCampChildrenTeam',
    method: 'get',
    params
  })
}
// 保存孩子评分

export function saveScore(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/saveLevelScore',
    method: 'get',
    params
  })
}
// 保存风采
export function savePhoto(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/savePhoto',
    method: 'post',
    data: params,
    typeData: 'JSON'
  })
}
//发送评分
export function sendScoreMessage(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/sendCampChildrenList',
    method: 'post',
    data: params
  })
}
//发送每日风采
export function sendPhotoMessage(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/sendCampChildrenPhotoList',
    method: 'post',
    data: params
  })
}
//获取风采列表
export function getListCampPhoto(params) {
  return request({
    url: '/ucenter-admin/camping/campChildren/listCampPhoto',
    method: 'get',
    params
  })
}
